import { ref, computed } from 'vue';

export function useTogglePicker() {
  const currentSelected = ref('first');
  const isFirst = computed(() => currentSelected.value === 'first');

  const showPicker = ref(false);
  function togglePicker(flag) {
    showPicker.value = true;

    currentSelected.value = flag;
  }

  return {
    showPicker,
    togglePicker,
    isFirst,
  };
}
